<script type="text/javascript" language="javascript">
    (function($) {
        /*whatever jQuery stuff*/
        $(function(){								
            $("#Form").validate({
				ignore: "",
                rules: {
					video_type_name: "required"
                },
                showErrors: function(errorMap, errorList){
                    var messages='';
                    for (var i = 0; i < errorList.length; i++) {					
                        messages += '- '+errorList[i].message+'\n';
                    }
                    if(messages) alert("<?php echo lang('requirement');?>: \n"+"¯¯¯¯¯¯¯¯¯¯ \n"+ messages);
                    //this.defaultShowErrors();
                } ,
                submitHandler: function(e){
					$('.ajax-loading',e).css('visibility','visible');
					//Send Form
					document.forms["Form"].submit();
                },
                onfocusout: false,
                onkeyup: false,
				onclick: false,					
                messages: {
					video_type_name: "<?php echo lang('video_type_name');?>"	
                }
            });		
        });
    })(jQuery);
</script>
<div class="wrap">
 	<div id="icon-index" class="icon32"><br /></div><h2><?php echo ucwords(str_replace('_',' ',$this->uri->segment(1)));?> &raquo; <?php echo ucwords(str_replace('_',' ',$this->uri->segment(2)));?> &raquo; <?php echo lang($this->uri->segment(3));?></h2>
</div>
<div id="wpbody-content">
    <div class="metabox-holder" id="dashboard-widgets">
		<div class="tablenav top">
			<div class="alignleft"><input type="button" value="<?php echo lang('button_back');?>" class="button-primary" onclick="javascript:history.go(-1);"/></div>
		</div>	
            <div class="inside">			
				<form id="Form" method="post" action="" name="Form">
					<table border="0" cellspacing="0" cellpadding="0" class="form-table">
						<tbody>	
						<tr>
							<th scope="row"><?php echo lang('video_type_name');?></th>
							<td><input type="text" name="video_type_name" id="video_type_name" class="medium-text" value="<?php echo htmlspecialchars($dataResult->video_type_name, ENT_QUOTES, 'UTF-8');?>"/></td>
						</tr>
						<tr>
							<th scope="row"><?php echo lang('video_type_alias');?></th>
							<td><input type="text" name="video_type_alias" id="video_type_alias" class="medium-text" value="<?php echo $dataResult->video_type_alias;?>"/></td>
						</tr>						
						<tr>
							<th scope="row"><?php echo lang('is_tv_show');?></th>
							<td>
								<input type="radio" name="is_tv_show" value="0" <?php echo ($dataResult->is_tv_show == "0" ? 'checked="checked"':'');?>/> <?php echo lang('no');?>
								<input type="radio" name="is_tv_show" value="1" <?php echo ($dataResult->is_tv_show == "1" ? 'checked="checked"':'');?>/> <?php echo lang('yes');?>
							</td>
						</tr>						
						<tr>
							<th scope="row">
								<?php echo lang('update_date');?>
							</th>
							<td class="describe"><?php echo $dataResult->update_date;?></td>
						</tr>
						<tr>
							<th scope="row">&nbsp;</th>
							<td><p class="submit"><input type="submit" value="<?php echo lang('button_edit');?>" class="button-primary" />&nbsp;<img alt="" class="ajax-loading" src="<?php echo css_asset_url('images/wpspin_light.gif'); ?>" /></p></td>
						</tr>								
						</tbody>
					</table>
					<div class="tablenav bottom"></div>
				</form>
            </div><!-- wpbody inside -->
    </div><!-- wpcontent -->
</div><!-- wpbody-content -->